const a = [1, , 3, 4, 5];
console.log(Object.keys(a)); // [ '0', '2', '3', '4' ]
a.length = 3;
console.log(Object.keys(a)); // [ '0', '2' ]
